import { baseRequest } from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/biz/Englishword/` + url, ...arg)

/**
 * 4级单词表Api接口管理器
 *
 * @author Lancer
 * @date  2025/01/09 16:17
 **/
export default {
	// 获取4级单词表分页
	bizCet43Page(data) {
		return request('page', data, 'get')
	},
	// 提交4级单词表表单 edit为true时为编辑，默认为新增
	bizCet43SubmitForm(data, edit = false) {
		return request(edit ? 'edit' : 'add', data)
	},
	// 删除4级单词表
	bizCet43Delete(data) {
		return request('delete', data)
	},
	// 获取4级单词表详情
	bizCet43Detail(data) {
		return request('detail', data, 'get')
	},
	// 获取每日单词
	bizCet43DayWordData(data) {
		return request('dayword', data, 'post')
	},

}
